package com.aat.dizena.base.service;

import java.util.*;

import com.aat.dizena.base.bean.Ress;
import com.aat.dizena.base.bean.Role;

public interface RoleService {

	int addBean(Role bean);

	int updateBean(Role bean);

	int deleteBean(String id);

	Role queryBean(String id);

	List<Role> queryAll(Map<String, Object> map);

	long queryCount(Map<String, Object> map);

	Collection<? extends Ress> queryRoleRess(String role);

	int addRole(String role, String desc, String ressId);

	int updateRole(String id, String role, String desc, String ressId);

	List<String> queryResIds(String id);
}
